﻿-if(ViewData.Exceptions.Count > 0)
  .error
    -foreach(var ex in ViewData.Exceptions)
      =ex.Message
-if(ViewData.ContainsKey("exceptions"))
  -foreach(var ex in ViewData["exceptions"] as List<Exception>)
    .error=ex.Message
-if(ViewData.ContainsKey("warnings"))
  -foreach(var ex in ViewData["warnings"] as List<Exception>)
    .warning=ex.Message